﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Companies_Products : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnAddProduct_Click(object sender, EventArgs e)
    {
        Redirect("Add");
    }
    protected void ddlAllSuppliers_SelectedIndexChanged(object sender, EventArgs e)
    {
        Response.Redirect("~/Companies/SuppProducts.aspx?SupplierID=" + ddlAllSuppliers.SelectedValue.ToString());
    }
    protected void Redirect(string page)
    {
        string url;
        url = "~/Items/" + page + "ItemsSuppliers.aspx?SupplierID=" + Request.QueryString["SupplierID"];
        Response.Redirect(url);
    }
    protected void btnEdit_Click(object sender, EventArgs e)
    {
        Redirect("Edit");
    }
    protected void bntDel_Click(object sender, EventArgs e)
    {
        Redirect("Del");
    }
}
